package com.atguigu.bigdata.scala.chapter06;

public class Scala10_Object_Extends_Java {
    public static void main(String[] args) {

        User10 user = new User10();

        // 2222
        // 4444
        // 3333
    }
}

class Person10 {

    public Person10() {
        System.out.println("1111");
    }
    public Person10(String name) {
        System.out.println("2222");
    }
}

class User10 extends Person10 {
    public User10() {
        //this()和super()都要在第一行,但是this和super不能同时出现在第一行
        this("zhangsan");
        System.out.println("3333");
    }
    public User10(String name) {
        //每个构造方法默认有个super()
        //super(name);
        System.out.println("4444");
    }
}
